package com.surfilter.code.model;

import java.util.List;

/**
 * 
 * <p>Title:外键</p>
 * <p>Description:</p>
 * <p>Company: 深圳任子行网络技术股份有限公司 </p>
 * @version 1.00 
 * @since 2012-10-22
 * @author liuhe
 *  
 * Modified History: 
 *
 */
public class ForeignKey {
  
	/**
	 * 外键名
	 */
	private String name;
 
	/**
	 * 当前表的列集合
	 */
	private List<String> columnList;

	/**
	 * 引用的表名 
	 */
	private String foreignTableName;
	
	/**
	 * 引用的表中的列集合
	 */
	private List<String> foreignColumnList;

	/**
	 * 数据更新规则
	 */
	private String rule;
	
	public String getRule() {
		return rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getColumnList() {
		return columnList;
	}

	public void setColumnList(List<String> columnList) {
		this.columnList = columnList;
	}

	public String getForeignTableName() {
		return foreignTableName;
	}

	public void setForeignTableName(String foreignTableName) {
		this.foreignTableName = foreignTableName;
	}

	public List<String> getForeignColumnList() {
		return foreignColumnList;
	}

	public void setForeignColumnList(List<String> foreignColumnList) {
		this.foreignColumnList = foreignColumnList;
	}
	
}
